using PP.Basic;
using UnityEngine;

namespace PP.PPPoker
{
    /// <summary>
    /// PokerCardConfig 扑克纸牌的配置类
    /// </summary>
    public class PokerCardConfig
    {
        private const string Tag = nameof(PokerCardConfig);

        // Private Variables Begin
        // Private Variables End

        // Public Methods Begin
        public static string GetPokerCardImagePath(int cardCode)
        {
            if (cardCode == CardDealer.Little_Joker)
                return "Texture/SkinCard_Flat/common_joker_little";
            if (cardCode == CardDealer.Big_Joker)
                return "Texture/SkinCard_Flat/common_joker_big";
            else
            {
                var cardPoint = cardCode.GetCardValueLowerStr();
                var cardSuit = cardCode.GetCardColor();
                return $"Texture/SkinCard_Flat/common_{cardSuit}_{cardPoint}";
            }
        }


        // Private Methods Begin
        // Private Methods End
    }
}
